//package com.acanx.log4j2.schedule;
//
//import lombok.extern.log4j.Log4j2;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//
///**
// * Created by ACANX on 2018/12/25.
// * LogJobTest :
// */
//@Component
//@Log4j2
//public class LogJobTest {
//
//    /**
//     * 2秒钟执行1次
//     */
//    @Scheduled(fixedRate = 1 * 1000)
//    public void logging() {
//        Date now = new Date();
//        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
//        log.info(simpleDateFormat.format(now));
//        log.debug("-------DEBUG---------");
//        log.error(now.getTime());
//        log.warn("qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq warn                ----------");
//        log.debug("----------------------------------------------fdeffff");
//        log.trace("---------------------------------travcc---------------");
//    }
//
//
//}
